<?php

namespace pam\Service;

/**
 *
 * @author robert.bwana
 */

use pam\Model\PolicyStatement;

interface PolicyServiceInterface {
    /*
     * @return array|Policy[]
     */
    public function findAll();
    
    /*
     * @param int $id Id of the polcy
     * @return Policy
     */
    public function findPolicy($id);
    
    /*
     * @param Policy $policy
     * return Policy
     */
    public function savePolicy(PolicyStatement $policy);
    
    /*
     * @param Policy $policy
     * @return bool
     */
    public function deletePolicy(PolicyStatement $policy);
    
}
